package cn.tedu.store.feign;

import cn.tedu.store.entity.UserVisitLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "user-service")
public interface UserServiceClient {
    @PostMapping("/userVisitLog/save")
    public void saveVisitLog(@RequestBody UserVisitLog log);

    @PostMapping("/userVisitLog/getCidByUid")
    public Integer getCidByUid(@RequestBody Integer uid);
}
